import {defineStore} from 'pinia'
import {reactive} from "vue";

export const useMathConfig = defineStore('mathConfig', () => {
    const mathConfig = reactive({
        min: 1,//最小数
        optMode: 1,//操作模式: 1加减;2乘除
        max: 20,//最大数
        count: 72,//题目数
    })
    return {mathConfig}
}, {
    persist: {
        storage: sessionStorage,
    },
})
